import cgi
import wsgiref.handlers
import os

from google.appengine.api import users
from google.appengine.ext import webapp
from google.appengine.ext.webapp import template
from google.appengine.ext import db

class Post(db.Model):
    id = db.StringProperty()
    parent = db.StringProperty
    author = db.UserProperty()
    content = db.StringProperty(multiline=True)
    date = db.DateTimeProperty(auto_now_add=True)
    
class PostView(webapp.RequestHandler):
     def get(self):
         self.response.out.write('<html><body>You wrote:<pre>')
    
def main():
    application = webapp.WSGIApplication(
                                       [(r'/.*', PostView)],
                                       debug=True)
    wsgiref.handlers.CGIHandler().run(application)